* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
	background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 20px;
	color: #333;
}

.container {
	width: 100%;
	max-width: 500px;
	background-color: white;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.header {
	background: linear-gradient(135deg, #4a00e0, #8e2de2);
	color: white;
	padding: 25px 20px;
	text-align: center;
}

.header h1 {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 8px;
}

.header p {
	font-size: 16px;
	opacity: 0.9;
}

.input-section {
	padding: 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	gap: 10px;
}

.todo-input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.todo-input:focus {
	border-color: #6a11cb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.add-btn {
	background: linear-gradient(135deg, #4a00e0, #8e2de2);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.add-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.filter-section {
	display: flex;
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	gap: 10px;
}

.filter-btn {
	flex: 1;
	padding: 8px 0;
	background: none;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-btn.active {
	background: linear-gradient(135deg, #4a00e0, #8e2de2);
	color: white;
	border-color: #4a00e0;
}

.filter-btn:hover:not(.active) {
	background-color: #f5f5f5;
}

.todo-list {
	padding: 10px 0;
	min-height: 200px;
	max-height: 400px;
	overflow-y: auto;
}

.todo-item {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #f0f0f0;
	animation: slideIn 0.3s ease-out;
	transition: all 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.todo-item.removing {
	opacity: 0;
	transform: translateX(100px);
}

.todo-checkbox {
	width: 20px;
	height: 20px;
	margin-right: 15px;
	cursor: pointer;
	accent-color: #4a00e0;
}

.todo-text {
	flex: 1;
	font-size: 16px;
	transition: all 0.3s ease;
}

.todo-text.completed {
	text-decoration: line-through;
	color: #888;
}

.delete-btn {
	background: none;
	border: none;
	color: #ff4757;
	font-size: 18px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.delete-btn:hover {
	background-color: rgba(255, 71, 87, 0.1);
	transform: scale(1.1);
}

.footer {
	padding: 15px 20px;
	background-color: #f9f9f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #666;
}

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #888;
}

.empty-state p {
	margin-bottom: 10px;
}

@media (max-width: 480px) {
	body {
		padding: 10px;
	}

	.container {
		border-radius: 12px;
	}

	.header {
		padding: 20px 15px;
	}

	.header h1 {
		font-size: 24px;
	}

	.input-section {
		flex-direction: column;
	}

	.add-btn {
		width: 100%;
	}

	.filter-section {
		flex-direction: column;
	}
}
